<?php

session_start();

error_reporting(0);
include "../clases/Cliente.class.php";
$obj = new Cliente();

if(!isset($_SESSION['id_cliente'])){
$email = $_REQUEST["email"];
$pass = $_REQUEST["pass"];
$campo = $obj->Login($email, $pass);
if(count($campo)==0){
	header("location:iniciosesion.php");
}else{
	$_SESSION['nombre_cliente'] =  $campo["nombre_cliente"];
	$_SESSION['id_cliente'] =  $campo["id_cliente"];
	header("location: micarrito.php");
}
}
?>
 
